package com.itheim.orderservice.service;

import com.itheim.orderservice.bean.OrderBean;
import com.itheim.orderservice.mapper.OrderServiceMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class OrderServiceImpl implements OrderService{

    @Autowired
    private OrderServiceMapper orderServiceMapper;

    @Override
    public int add(OrderBean orderBean) {
        return orderServiceMapper.add(orderBean);
    }
}
